<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        var frend = {
            //键值  冒号前面的是键 后面的是值
            name : '峰峰',
            age : 88,
            height : '150cm',
            sex : '男',
            hobby : ['唱','跳','rap'],
            fn : function() {
                console.log('干啥啥不行');
                
            }
        }

        // 使用for (var 变量名(key) in 对象名) {}

        for (var k in frend) {
            console.log(k) 
        }
        for (var k in frend) {
            console.log(obj[k]) 
        }
    </script>
</body>
</html>